<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<jsFileName><!--js/pageJS/page_zdxzdc.js;js/My97DatePicker/WdatePicker.js--></jsFileName>
<s:form id="query_zdxzdc_list_form" name="query_zdxzdc_list_form" method="post" action="zdxzdc/list.do">
<div  class="con_wrap_padding">
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">			
			<a class="btn_short" href="javascript:void(0)" title="新建" onClick="Ext.milan.pagejs.page_zdxzdc.showAddForm();">新 建</a>
		</div>
		<div class="trans_type_search">
			相关工作项：<s:textfield name="xggz" size="10"/>
			日期：<s:textfield name="rqBegin" size="10" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true"/>
			至：<s:textfield name="rqEnd" size="10" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true"/>
			<%-- 
			状态：<s:select name="zxzt" list="#{'':'--请选择--','1':'高管','2':'中层','3':'员工'}"></s:select>
			--%>
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="搜索" onclick="QueryZdxzdcListUtils.query()">搜索</a>
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="导出" onclick="QueryZdxzdcListUtils.jldc()">导出</a>
		</div>   
	</div>
	<table id="dataGridTable_zdxzdc" width="98%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true" style="table-layout:fixed">
		<tr>
			<td align="center">日期</td>
			<td align="center">相关工作项</td>
			<td align="center">具体要求</td>
			<td align="center">审核领导</td>
			<td align="center">审批状态</td>
			<td align="center">执行状态</td>
			<td align="center" width="20%">操作</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="left"><span title='${item.rqString}'><c:out value='${item.rqString}'/></span></td>
			<td align="left"><span title='${item.xggz}'>${item.xggz}</span></td>
			<td align="left"><span title='${item.jtyq}'>${item.jtyq}</span></td>
			<td align="left"><span title='${item.fgldxm}'>${item.fgldxm}</span></td>
			<td align="left">
				<c:if test="${item.spzt ==0}">待审批</c:if>
				<c:if test="${item.spzt ==1}">完成</c:if>
			</td>
			<td align="left">
				<c:if test="${item.zxzt ==-1}">未分配</c:if>
				<c:if test="${item.zxzt ==0}">执行中</c:if>
				<c:if test="${item.zxzt ==1}">完成</c:if>
				<c:if test="${item.zxzt ==2}">未执行</c:if>
				<c:if test="${item.zxzt ==3}">待审核</c:if>
			</td>
			<td align="center">
				<a href="#" onclick="Ext.milan.pagejs.page_zdxzdc.viewDetail('${item.id}')"><img src="skins/default/images/icons/ico-view.gif" />查看</a>&nbsp;
				<a href="#" onclick="Ext.milan.pagejs.page_zdxzdc.showEditForm('${item.id}')"><img src="skins/default/images/icons/ico-edit.gif" />编辑</a>&nbsp;
				<a href="#" onclick="Ext.milan.pagejs.page_zdxzdc.deleteForm('${item.id}')"><img src="skins/default/images/icons/ico-delete.gif" />删除</a>&nbsp;
			</td>
			
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="7"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
 	</div>
</s:form>
<script type="text/javascript">;
	QueryZdxzdcListUtils = {};
	
	/**
	 * 条件查询
	 */
	QueryZdxzdcListUtils.query = function() {
		//强行设置当前页为第一页
		var currentPage = $("query_zdxzdc_list_form").pageNo;
		if(currentPage) 
			currentPage.value = 1;
		
		$("query_zdxzdc_list_form").action = "zdxzdc/list.do";
		Ext.milan.pagejs.page_zdxzdc.query();
	};
	
	QueryZdxzdcListUtils.jldc = function() {
		$("query_zdxzdc_list_form").action = "zdxzdc/export.do";
		Ext.milan.pagejs.page_zdxzdc.jldc('query_zdxzdc_list_form');
	};
	
</script>